<form action="2.php" method="post" enctype="multipart/form-data">
    <input type="file" name="up" />
    <button>上传</button>
</form>